package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author tww
 * @since 2021-03-11
 */
public class SysUserBack extends Model<SysUserBack> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "USER_NO", type = IdType.AUTO)
    private Integer userNo;

    /**
     * 姓名
     */
    @TableField("USER_NAME")
    private String userName;

    /**
     * 用户头像
     */
    @TableField("USER_PHOTO")
    private String userPhoto;

    /**
     * 用户名（登录账号）
     */
    @TableField("LOGIN_NAME")
    private String loginName;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 手机号
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 加密盐
     */
    @TableField("SALT")
    private String salt;

    /**
     * 明文密码
     */
    @TableField("PAW")
    private String paw;

    /**
     * 职位
     */
    @TableField("POST")
    private String post;

    /**
     * 部门
     */
    @TableField("DEPT")
    private String dept;

    /**
     * 所属组织
     */
    @TableField("ORG_ID")
    private String orgId;

    /**
     * 状态（0.停用 1.开通 9.删除 ）
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATE_BY")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /**
     * 最近登录时间
     */
    @TableField("LOGIN_TIME")
    private Date loginTime;

    /**
     * 职责类型  1-系统管理员 2-供餐机构
     */
    @TableField("POST_TYPE")
    private String postType;

    private String token;

    @TableField("PASSWORD_EDIT_FLAG")
    private String passwordEditFlag;

    @TableField("MEAL_NAME")
    private String mealName;

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }
    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
    public String getPaw() {
        return paw;
    }

    public void setPaw(String paw) {
        this.paw = paw;
    }
    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }
    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
    public String getPostType() {
        return postType;
    }

    public void setPostType(String postType) {
        this.postType = postType;
    }
    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
    public String getPasswordEditFlag() {
        return passwordEditFlag;
    }

    public void setPasswordEditFlag(String passwordEditFlag) {
        this.passwordEditFlag = passwordEditFlag;
    }
    public String getMealName() {
        return mealName;
    }

    public void setMealName(String mealName) {
        this.mealName = mealName;
    }

    @Override
    protected Serializable pkVal() {
        return this.userNo;
    }

    @Override
    public String toString() {
        return "SysUserBack{" +
        "userNo=" + userNo +
        ", userName=" + userName +
        ", userPhoto=" + userPhoto +
        ", loginName=" + loginName +
        ", password=" + password +
        ", phone=" + phone +
        ", salt=" + salt +
        ", paw=" + paw +
        ", post=" + post +
        ", dept=" + dept +
        ", orgId=" + orgId +
        ", status=" + status +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        ", loginTime=" + loginTime +
        ", postType=" + postType +
        ", token=" + token +
        ", passwordEditFlag=" + passwordEditFlag +
        ", mealName=" + mealName +
        "}";
    }
}
